/*
 * Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 

package org.dromara.maxkey.entity;

import java.io.Serializable;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import org.dromara.maxkey.entity.apps.Apps;

@Entity
@Table(name = "mxk_access")  
public class Access extends Apps implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 8634166407201007340L;
    @Id
    @Column
    @GeneratedValue
    String id;
    @Column
    private String groupId;
    
    private String groupName;
    
    @Column
    private String appId;
    
    private String appName;
    
    @Column
    private String instId;

    private String instName;
    
    public Access(){
        super();
    }
    
    
    /**
     * @param groupId
     * @param appId
     */
    public Access(String groupId, String appId, String instId) {
        super();
        this.groupId = groupId;
        this.appId = appId;
        this.instId = instId;
    }



    public String getGroupId() {
        return groupId;
    }


    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }


    public String getGroupName() {
        return groupName;
    }


    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }


    /**
     * @return the appId
     */
    public String getAppId() {
        return appId;
    }
    /**
     * @param appId the appId to set
     */
    public void setAppId(String appId) {
        this.appId = appId;
    }


    public String getId() {
        return id;
    }


    public void setId(String id) {
        this.id = id;
    }


    public String getInstId() {
        return instId;
    }


    public void setInstId(String instId) {
        this.instId = instId;
    }


    public String getInstName() {
        return instName;
    }


    public void setInstName(String instName) {
        this.instName = instName;
    }



    public String getAppName() {
        return appName;
    }


    public void setAppName(String appName) {
        this.appName = appName;
    }


    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("Access [id=");
        builder.append(id);
        builder.append(", groupId=");
        builder.append(groupId);
        builder.append(", groupName=");
        builder.append(groupName);
        builder.append(", appId=");
        builder.append(appId);
        builder.append(", appName=");
        builder.append(appName);
        builder.append(", instId=");
        builder.append(instId);
        builder.append(", instName=");
        builder.append(instName);
        builder.append("]");
        return builder.toString();
    }
    

}
